package com.rustic.server.vo.list;

import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.rustic.server.po.EventActivity;

import java.util.Date;

/**
 * 表[event_activity]对应VO类
 *
 * @author auto
 */

@Data
public class EventActivityWebListVO {

    /**
     * 自增ID
     */
    @ApiModelProperty(value = "自增ID", dataType = "Integer")
    private Integer id;

    /**
     * 关联乡村id
     */
    @ApiModelProperty(value = "关联乡村id", dataType = "int")
    private int rusticId;

    /**
     * 关联乡村
     */
    @ApiModelProperty(value = "关联乡村id", dataType = "String")
    private String rusticName;

    /**
     * 事件/活动
     */
    @ApiModelProperty(value = "事件/活动", dataType = "String")
    private String name;

    /**
     * 地区
     */
    @ApiModelProperty(value = "地区", dataType = "String")
    private String address;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址", dataType = "String")
    private String detailedAddress;

    /**
     * 介绍
     */
    @ApiModelProperty(value = "介绍", dataType = "String")
    private String introduce;

    /**
     * 封面
     */
    @ApiModelProperty(value = "封面", dataType = "String")
    private String cover;

    /**
     * 图片(轮播图)
     */
    @ApiModelProperty(value = "图片(轮播图)", dataType = "String")
    private String images;

    /**
     * 事件/活动类型(1 举行活动,2 公告,3 政策)id
     */
    @ApiModelProperty(value = "事件/活动类型(1举行活动,2公告,3政策)id", dataType = "int")
    private int type;

    /**
     * 事件/活动类型(1 举行活动,2 公告,3 政策)
     */
    @ApiModelProperty(value = "事件/活动类型(1举行活动,2公告,3政策)", dataType = "String")
    private String typeName;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", dataType = "int")
    private int sort;

    /**
     * 活动开始时间
     */
    @ApiModelProperty(value = "活动开始时间", dataType = "Date")
    private Date startTime;

    /**
     * 活动结束时间
     */
    @ApiModelProperty(value = "活动结束时间", dataType = "Date")
    private Date endTime;

    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id", dataType = "int")
    private int creatorId;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间", dataType = "Date")
    private Date publishTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", dataType = "Date")
    private Date updateTime;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    private Date createTime;

    /**
     * 点赞数量
     */
    @ApiModelProperty(value = "点赞数量", dataType = "Long")
    private long likeCount;

    /**
     * 收藏数量
     */
    @ApiModelProperty(value = "收藏数量", dataType = "Long")
    private long collectionCount;

    /**
     * 浏览数量
     */
    @ApiModelProperty(value = "浏览数量", dataType = "Long")
    private long browseCount;

    /**
     * 用户是否点赞
     */
    @ApiModelProperty(value = "用户是否点赞", dataType = "Long")
    private boolean isLike;

    /**
     * 用户是否收藏
     */
    @ApiModelProperty(value = "用户是否收藏", dataType = "Long")
    private boolean isCollection;

    public EventActivityWebListVO(EventActivity eventActivity) {
        if (eventActivity != null) {
            BeanUtil.copyProperties(eventActivity, this);
        }
    }
}
